package com.cloud.utils;

import java.util.UUID;

/**
 * 定义全局变量
 *
 * @author .
 * created in 2020/1/11 9:30
 */

public class GlobalConstant {

    /**
     * 返回值，1 为成功，2 为失败
     */
    public static final int SUCCESS = 1;
    public static final int ERROR = 0;

    /**
     * 出入库，1 为入库，2 为出库
     */
    public static final int inWarehouse = 1;
    public static final int outWarehouse = 0;

    /**
     * 生成随机字符串
     *
     * @return 随机字符串
     */
    public static String getRandomUUID() {
        return UUID.randomUUID().toString().replace("-", "");
    }

}
